// components/ranking-item/ranking-item.js
Component({
    properties: {
        itemData:{
            type:Object,
            value:{}
        },
        key:{
            type:String,
            value:"newRanking"
        }
    },
    methods: {
        onRankingItemTap() {
            const key = this.properties.key
            wx.navigateTo({
              url: `/pages/detail-song/detail-song?type=ranking&key=${key}`,
            })
        }
    }
})
